package org.zs.miracle.service.role.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.util.ArrayList;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.zs.miracle.common.base.dto.BaseLongIdDTO;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EditRoleDTO extends BaseLongIdDTO {
  
  @Serial
  private static final long serialVersionUID = 4929873507751718934L;
  
  @Schema(description = "角色名")
  private String name;
  
  @Schema(description = "启用状态 true|false")
  private Boolean enable;
  
  @Schema(description = "图标", example = "i-fe:user")
  private String icon;
  
  @Schema(description = "描述", example = "拥有系统全部权限")
  private String remark;
  
  @Schema(description = "权限id集合")
  private List<Long> permissionIds = new ArrayList<>();
}